package com.cloudtcm.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "员工登录返回的数据格式")
public class UserLoginVO {
    @ApiModelProperty("主键值")
    private Long id;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("头像路径")
    private String image;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /*TODO 改为height*/
    @ApiModelProperty("身高/cm/int")
    private int height;

    @ApiModelProperty("体重/kg/int")
    private int weight;

    @ApiModelProperty("备注")
    private String comment;

    @ApiModelProperty("jwt令牌")
    private String token;
}
